package usian.controller;

import com.usian.pojo.User;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import usian.service.ProviderService;

@RestController
public class ProviderController {
    @Autowired
    private ProviderService providerService;
    @RequestMapping("/getUserById/{id}")
    public User getUserById(@PathVariable Integer id){
      return   providerService.getById(id);
    }
}
